package com.zzedu.dto;

import com.fasterxml.jackson.annotation.*;

import java.util.*;
import java.time.*;
import java.math.*;
import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;

import java.time.LocalDateTime;

/**
 * 课程包管理对象 zz_course
 *
 * @author Mr.Wang
 * @date 2025-02-04
 */
public class ZzCourseDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */

    private Long id;
    /**
     * 课程包名称
     */
    private String name;
    /**
     * 正常
     */
    private Integer state;
    /**
     * 添加时间
     */
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    private LocalDateTime gmtModify;
    /**
     * 逻辑删除(0：未删除 1：id)
     */
    private Integer deleted;

    /**
     * 课包级别
     */
    private String level;

    /**
     * 课时数
     */
    private Integer hourCount;

    /**
     * 课包费(元)
     */
    private BigDecimal hourAmount;

    /**
     * 绑定课程起始节
     */
    private Integer startNum;

    /**
     * 绑定课程结束节
     */
    private Integer endNum;

    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";


    private Long includeSchoolId;


    private Long excludeSchoolId;


    private Integer sortNo;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtModify(LocalDateTime gmtModify) {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() {
        return gmtModify;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public Long getIncludeSchoolId() {
        return includeSchoolId;
    }

    public void setIncludeSchoolId(Long includeSchoolId) {
        this.includeSchoolId = includeSchoolId;
    }

    public Long getExcludeSchoolId() {
        return excludeSchoolId;
    }

    public void setExcludeSchoolId(Long excludeSchoolId) {
        this.excludeSchoolId = excludeSchoolId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getHourCount() {
        return hourCount;
    }

    public void setHourCount(Integer hourCount) {
        this.hourCount = hourCount;
    }

    public BigDecimal getHourAmount() {
        return hourAmount;
    }

    public void setHourAmount(BigDecimal hourAmount) {
        this.hourAmount = hourAmount;
    }

    public Integer getStartNum() {
        return startNum;
    }

    public void setStartNum(Integer startNum) {
        this.startNum = startNum;
    }

    public Integer getEndNum() {
        return endNum;
    }

    public void setEndNum(Integer endNum) {
        this.endNum = endNum;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
